package com.valley.dream.tihai.view.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.valley.dream.tihai.R;
import com.valley.dream.tihai.model.dto.InitProblemBO;
import com.valley.dream.tihai.model.dto.SelectProblemByRecommendVO;
import com.valley.dream.tihai.presenter.IProblemPresenter;
import com.valley.dream.tihai.presenter.impl.ProblemPresenterImpl;
import com.valley.dream.tihai.util.result.Result;
import com.valley.dream.tihai.view.adapter.RecommendRVAdapter;

import java.util.List;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

public class RecommendFragment extends Fragment {

    View root;
    IProblemPresenter problemPresenter = new ProblemPresenterImpl();


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public void onResume() {
        super.onResume();
        initView();
    }

    private void initView() {
        Result result = problemPresenter.selectProblemByRecommend(getActivity());
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        if (root == null){
            root = inflater.inflate(R.layout.fragment_recommend, container, false);
        }
        return root;
    }
}